Skip to content

change volume to named volume rather than host bind mount (#275) - #276

Merged
HugoFara merged 1 commit into
HugoFara:developfrom
sarahmccuan:fix-failing-migrations
Aug 26, 2026
Merged

change volume to named volume rather than host bind mount (#275)#276
HugoFara merged 1 commit into
HugoFara:developfrom
sarahmccuan:fix-failing-migrations

Conversation

@sarahmccuan

Copy link
Copy Markdown

Fixing all the migration failures: errno 150/194 and "error 41" migration failures in #275.

Root cause: docker-compose.yml bind-mounted the MariaDB data directory from the Windows host (./lwt_db_data:/var/lib/mysql); that path is case-insensitive, so MariaDB force-set lower_case_table_names=2 (unsupported on Linux builds) and every ALTER TABLE failed to rename its tablespace, which cascaded into the errors.

Fix: Switched that mount to a named Docker volume (lwt_db_data:/var/lib/mysql) so the InnoDB files live on ext4 inside the Docker VM.

@sarahmccuan
sarahmccuan marked this pull request as draft August 22, 2026 22:38
@sarahmccuan
sarahmccuan changed the base branch from main to develop August 22, 2026 22:39
@sarahmccuan
sarahmccuan marked this pull request as ready for review August 22, 2026 22:39
@HugoFara

Copy link
Copy Markdown
Owner

Good investigation, if that is the cause, the fix is more than welcome!

@HugoFara HugoFara added bug Something isn't working docker Anything related to Docker database Database-related issues labels Aug 22, 2026
@sarahmccuan

Copy link
Copy Markdown
Author

Confirmed that it worked locally on windows anyway. Would probably be worth someone testing on a linux box to make sure nothing breaks on that side.

@HugoFara

Copy link
Copy Markdown
Owner

I have launched the workflows, and I'll test on Linux when I get the time, thanks for the PR!

N. B.: I also found the lone ./ a bit strange, I hope changing it won't break anything in a new and surprising way!

@HugoFara HugoFara linked an issue Aug 23, 2026 that may be closed by this pull request
@HugoFara
HugoFara merged commit 8c92e8e into HugoFara:develop Aug 26, 2026
14 checks passed
HugoFara added a commit that referenced this pull request Aug 27, 2026
A minor bump rather than a patch: the release adds four-grade FSRS review
and scheduled Anki export, makes the language parser setting real, and
drops three columns from `words`.

Condense the changelog entries, which had grown to full explanations of
each mechanism, down to what a reader upgrading needs to know. The reasoning
stays in the commits and pull requests it came from.

Add the entry for #276, which had none: moving the database to a named
Docker volume is the change in this release most likely to alarm someone,
since an existing install looks empty until the old data is imported.

ParseCoverage carried @SInCE 3.4.3, the only version guess in the new code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working database Database-related issues docker Anything related to Docker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failing migrations on clean install

2 participants